package cc.iteachyou.template;

import cc.iteachyou.template.configuration.TemplateEngineConfiguration;

public class TemplateEngineFactory {

    /**
     * 获取模板引擎实例
     * @param configuration 模板引擎配置
     * @return
     */
    public static TemplateEngine getTemplateEngine(TemplateEngineConfiguration configuration){
        TemplateEngine engine = TemplateEngine.getInstance(configuration);

        engine.init();

        return engine;
    }
}
